body {
  width: 800px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.container {
  padding: 20px;
}

.header {
  margin-bottom: 20px;
  text-align: center;
}

h1 {
  color: #2c3e50;
  font-size: 20px;
  margin: 0 0 10px 0;
}

.total-stats {
  color: #7f8c8d;
  font-size: 15px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  display: inline-block;
}

#totalCount {
  color: #2ecc71;
  font-weight: bold;
}

.keyboard-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.key {
  width: 50px;
  height: 60px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.key:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.key.active {
  background: #e9ecef;
}

.key-name {
  color: #2c3e50;
  font-weight: 500;
  margin-bottom: 4px;
}

.key-count {
  color: #7f8c8d;
  font-size: 12px;
}

/* 特殊键位的宽度 */
.key.space {
  width: 300px;
}

.key.tab, .key.caps, .key.shift, .key.enter {
  width: 80px;
}

.footer {
  margin-top: 20px;
  text-align: center;
}

.reset-button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.reset-button:hover {
  background: #c0392b;
}

.reset-icon {
  margin-right: 6px;
  font-size: 16px;
} 